import { baseUrl } from './baseUrl';
import request from '@/utils/request';

/* 养护管理 */

// 获取养护单位
export async function GetCompany(params) {
  return request(`${baseUrl}/Problem/GetCompany`, {
    method: 'POST',
    data: params,
  });
}
// 获取问题类型-大类
export async function GetClass(params) {
  return request(`${baseUrl}/Problem/GetClass`, {
    method: 'POST',
    data: params,
  });
}
// 获取问题类型-小类
export async function GetZClass(params) {
  return request(`${baseUrl}/Problem/GetZClass`, {
    method: 'POST',
    data: params,
  });
}
// 上报来源
export async function ReportSource(params) {
  return request(`${baseUrl}/Config/GetSourceProblem`, {
    method: 'POST',
    data: params,
  });
}
// 养护管理-查询
export async function GetQueryProblem(params) {
  return request(`${baseUrl}/Problem/GetQueryProblem`, {
    method: 'POST',
    data: params,
  });
}
// 养护管理-编辑
export async function Edit(params) {
  return request(`${baseUrl}/Problem/Edit`, {
    method: 'POST',
    data: params,
  });
}
// 养护管理-删除
export async function Delete(params) {
  return request(`${baseUrl}/Problem/Deltele`, {
    method: 'POST',
    data: params,
  });
}
// 养护管理-结案
export async function CloseProblem(params) {
  return request(`${baseUrl}/Problem/CloseProblem`, {
    method: 'POST',
    data: params,
  });
}
// 分派处理--市政
export async function AssignProblem(params) {
  return request(`${baseUrl}/Problem/AssignProblem`, {
    method: 'POST',
    data: params,
  });
}

// 获取照片
export async function GetMediafiles(params) {
  return request(`${baseUrl}/Problem/GetMediafiles`, {
    method: 'POST',
    data: params,
  });
}
